<#assign module="company"/>

<@override name="header">
</@override>
<@override name="body">

	<div class="row">
		<div class="col-md-12">
			<div class="panel panel-default" style="height:640px;">
				<div class="panel-heading">
					编辑收费内容
			    </div>
			    <div class="panel-body">
    				<form id="submit_form" action="${ctx}/company/updateContent" class="form-horizontal" method="post">
		                <input type="hidden" name="companyId" value="${company.id?if_exists}">
		                
		                <div class="form-group">
		                    <label class="col-sm-1 control-label"></label>
		                    <div class="col-sm-10">
		                    	<textarea class="form-control" cols="20" id="Content" name="Content" rows="2" required>${company.feeContent?if_exists}</textarea>
		                    </div>
		                </div>
		                
		                <div class="form-group" style="margin-left:10px;">
			                <label class="col-sm-3 control-label"></label>
			                <input id="submit_button" type="submit" class="btn btn-primary" value="保存">
			                <input type="button" class="btn btn-default" onclick="window.location.href = '${ctx}/company/list';" value="返回">
			            </div>
					</form>
        		</div>
			</div>
		</div>
	</div>

</@override>
<@override name="footer">
<script src="${ctx}/assets/kindeditor/kindeditor-all-min.js"></script>
<script src="${ctx}/assets/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		KindEditor.ready(function(K) {
			window.editor = K.create('#Content',{
				filterMode : false,
				uploadJson : '${ctx}/common/kindeditor/fileupload',
				allowUpload : true,
				fileManagerJson : '${ctx}/common/kindeditor/filemanager',
				allowFileManager : true,
				height:500,
				resizeType:0,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
					});
				},
				afterBlur:function(){ 
					this.sync();
				}
			});
		});
		
		$('#allCompany').tooltip();
	
	});
</script>
</@override>
<@extends name="../layout.ftl"/>